<!--
 * @Description: script元素
 * @Author: rendc
 * @Date: 2022-06-07 09:00:45
 * @LastEditors: rendc
 * @LastEditTime: 2022-06-08 08:18:16
-->
<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>script元素</title>
  <!-- 一般情况 script 标签 要放置在 head中 -->
  <script>
    var str = "hello,world"
    console.log('🤡 CC - str', str)
  </script>
  <script src="./hello.js"></script>
  <script async src="https://cdn.staticfile.org/vue/0.10.0/vue.js"></script>
  <!-- 不要在使用过src属性的script标签内部写其他代码 ， 否则只会执行src引入的脚本文件 而忽略标签内的代码-->
  <!-- <script src="./hello.js">
    var str = "hello,world"
    console.log('🤡 CC - str', str)
  </script> -->
</head>

<body>
  <div>顶部</div>
  <noscript>
    啊哦，你的浏览器不支持js
  </noscript>
  <div>
    script测试 请打开控制台查看内容
  </div>
</body>
<!-- <script src="https://cdn.staticfile.org/vue/0.10.0/vue.js"></script> -->
<!-- <script src="https://cdn.staticfile.org/vue/0.10.0/vue.js"></script> -->

</html>